function DataStoreCollection(){}

//Register Store Models
Ext.regModel('Sections', {
    fields: ['name', 'id']
});

Ext.regModel('Passage', {
    fields: ['content']
});

Ext.regModel('Question', {
    fields: ['question']
});

Ext.regModel('Options', {
    fields: ['option', 'no']
});

Ext.regModel('Empty', {
    fields: ['empty']
});


// Static Methods
DataStoreCollection.getSectionListStore = function(){
	return new Ext.data.Store({
	    model: 'Sections',
	    sorters: 'id',
	    data: [
	        {name: 'VOCABULARY', id: '1'},
			{name: 'GRAMMAR', id: '2'},
	        {name: 'LISTENING', id: '3'},
	        {name: 'READING', id: '4'}
	    ]
	});
};

DataStoreCollection.getEmptyStore = function(){
	return new Ext.data.Store({
	    model: 'Empty',
	    data: []
	});
};


DataStoreCollection.makeItemPassageStore = function(content){
	return new Ext.data.Store({
	    model: 'Passage',
	    // sorters: 'no',
	    data: [
			{content: content}
		]
	});
};


DataStoreCollection.makeItemQuestionStore = function(question){
	return new Ext.data.Store({
	    model: 'Question',
	    // sorters: 'no',
	    data: [
			{question: question}
		]
	});
};

DataStoreCollection.makeItemOptionStore = function(options){
	return new Ext.data.Store({
	    model: 'Options',
	    sorters: 'no',
	    data: options
	});
};

